<template>
  <div style="border: 1px solid black; padding: 10px">
    <div>子组件1</div>
    <button @click="sendMessage">通信</button>
  </div>
</template>
<script setup lang="ts">
import $bus from '../../eventBus/index'

const sendMessage = function () {
  $bus.emit('car', '吉利')
}
</script>
<style scoped></style>
